package com.crmapi.service;

import com.crmapi.pojo.PageBean;
import com.crmapi.pojo.User;

import java.util.List;

/**
 * <p>Project: CRMSystem - UserService</p>
 * <p>Powered by yzc On 2023-11-15 16:36:43</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
public interface UserService {

    //查询用户
    PageBean queryUser(Integer page , Integer pageSize, String name, String deptName, String jobName, Integer status);

    //保存用户
    int save(User entity);

    //批量删除
    int delByIds(List<String> ids);

    //更新用户
    int update(User user);

    //用户登录
   User userLogin(String username );

    //修改密码
    int updatePassword(String id ,String password);

    //查找相同用户名
    int queryUsername(String username);
}
